package com.nmf.pc.enums;

public enum UserRegisterType {
	gongch(1, "工程中心"),
	qiye(2, "企业"),
	;

	public Integer value;
	public String name;

	UserRegisterType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static UserRegisterType getStatus(Integer value) {
		if (value != null) {
			UserRegisterType[] otypes = UserRegisterType.values();
			for (UserRegisterType memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
